<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var arr = [];

        for (var i =0;i < 10;i++){
            arr[i] = i+1;

        }

        console.log(arr);
    </script>
</head>
<body>

</body>
</html>